10:00
RStudio and Basic Quarto
October 27, 2023
lorem
add in (install.packages("lorem")
)Session > Restart R
)setwd
File > New Project
lipsum
10:00
library(gganimate)
library(gapminder)
ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, colour = country)) +
geom_point(alpha = 0.7, show.legend = FALSE) +
scale_colour_manual(values = country_colors) +
scale_size(range = c(2, 12)) +
scale_x_log10() +
facet_wrap(~continent) +
labs(title = 'Year: {frame_time}', x = 'GDP per capita', y = 'life expectancy') +
transition_time(year) +
ease_aes('linear')
library(gganimate)
library(gapminder)
ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, colour = country)) +
geom_point(alpha = 0.7, show.legend = FALSE) +
scale_colour_manual(values = country_colors) +
scale_size(range = c(2, 12)) +
scale_x_log10() +
facet_wrap(~continent) +
labs(title = 'Year: {frame_time}', x = 'GDP per capita', y = 'life expectancy') +
transition_time(year) +
ease_aes('linear')
quarto publish quarto pub
15:00
quarto install tinytex
in terminaldocx
)typst
)
revealjs
format in QuartoYAML header with execution options for these slides…
---
title: Getting Started
subtitle: RStudio and Basic Quarto
date: today
date-format: long
footer: "[DataViz 2102 Website](https://dataviz-gwu.rocks)"
logo: images/dataviz-logo.png
format:
revealjs:
theme: [simple, custom.scss]
transition: fade
slide-number: true
multiplex: true
execute:
echo: false
message: false
warning: false
freeze: auto
---
You can also set execution options for individual code chunks…
revealjs
slide deck10:00
Coding Assignment 1 relates to the material we are covering today (through module 1.2)
Coding Assignment 2 relates to everything from module 2 (on data viz)
Final Project asks you to make a Quarto document or presentation with some original visualizations. Be creative!